.TH E1432_SET_TTLTRG_LINES 3 E1432
.SH NAME
.nf
e1432_set_ttltrg_lines \- Select a pair of sync/clock lines
e1432_get_ttltrg_lines \- Get current selection of sync/clock lines
.fi
.IX e1432_set_ttltrg_lines(3) 3
.IX e1432_get_ttltrg_lines(3) 3
.SH SYNOPSIS
.cS
SHORTSIZ16 e1432_set_ttltrg_lines(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 ttltrg)
SHORTSIZ16 e1432_get_ttltrg_lines(E1432ID hw, SHORTSIZ16 ID,
                                  SHORTSIZ16 *ttltrg)
.cE
.SH DESCRIPTION

\fIe1432_set_ttltrg_lines\fR sets the system VXI TTLTRG lines, of a
single channel or group of channels \fIID\fR, to the value given in
\fIttltrg\fR.  If a measurement is in progress while calling this
function, the measurement is aborted.

\fIe1432_get_ttltrg_lines\fR returns the currently selected VXI TTLTRG
lines, of a single channel or group of channels \fIID\fR, into a
memory location pointed to by \fIttltrg\fR.

An alternative way to specify TTLTRG lines is to use the
\fIe1432_set_ttltrg_clock\fR and \fIe1432_set_ttltrg_satrg\fR
functions.  Those functions allow arbitrary choices for the TTLTRG
lines.  However, \fIe1432_set_ttltrg_lines\fR ensures that the pair of
lines chosen is compatible with the E1431 8-Channel VXI Input module.

\fIhw\fR must be the result of a successful call to
\fIe1432_assign_channel_numbers\fR, and specifies the group of
hardware to talk to.

\fIID\fR is either the ID of a group of channels that was obtained with a
call to \fIe1432_create_channel_group\fR, or the ID of a single channel.

\fIttltrg\fR selects a pair of VXI ttltrg lines to be used for the
system lines.  In the following list, the first line is the one used
for the Sync/Arm/Trigger line (i.e. controlling measurement loop
transitions: booting, synchronizing and settling, arming, triggering
and measuring), and the second line is the one used for a free-running
system clock.

\fBE1432_TTLTRG_01\fR selects TTLTRG0 for SYNC, and TTLTRG1 for clock.
\fBE1432_TTLTRG_23\fR selects TTLTRG2 for SYNC, and TTLTRG3 for clock.
\fBE1432_TTLTRG_45\fR selects TTLTRG4 for SYNC, and TTLTRG5 for clock.
\fBE1432_TTLTRG_67\fR selects TTLTRG6 for SYNC, and TTLTRG7 for clock.
.SH "RESET VALUE"
After a reset, \fIttltrg\fR is set to \fBE1432_TTLTRG_01\fR.
.SH "RETURN VALUE"
Return 0 if successful, a (negative) error number otherwise.
.SH "SEE ALSO"
.na
e1432_set_ttltrg_clock, e1432_set_ttltrg_gclock,
e1432_set_ttltrg_satrg, e1432_set_ttltrg_trigger
.ad
